﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="../Script/jquery.js"></script>
    <script type="text/javascript" src="../Script/json2.js"></script>
    <script type="text/javascript" src="../Script/highcharts.js"></script>
    <script type="text/javascript" src="../Script/date.js"></script>
    <script type="text/javascript" src="../Script/XrmServiceToolkit.js"></script>
    <script type="text/javascript" src="../Script/UsageManager.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            CRMUsage.UsageManager.RetriveAuditUsage(function (data) {
                jQuery("#chartContainter").highcharts({
                        chart: {
                            type: 'spline'
                        },
                        title: {
                            text: 'Created and changed records per user per day'
                        },
                        subtitle: {
                            text: 'Source: Microsoft Dynamics CRM'
                        },
                        xAxis: {
                            type: 'datetime',
                            dateTimeLabelFormats: { // don't display the dummy year
                                month: '%e. %b',
                                year: '%b'
                            }
                        },
                        yAxis: {
                            title: {
                                text: 'Number of times a record is touched'
                            },
                            formatter: function () {
                                return this.value;
                            }
                        },
                        series: data
                    });
                });
        });
    </script>
</head>
<body>
    <div id="chartContainter">

    </div>
</body>
</html>
